/**
* AutoSWF - Cody Cushing. March 26, 2009
* Copyright (c) 2009 Cody Cushing
* No use restrictions. Maintain this notice in all versions. 
**/

package com.autoswf.dispatcher
{
	import com.autoswf.core.Transport;
	
	/**
	 * Mediator object to bubble addEventListener and removeEventListener arguments 
	 * to a RemoteDispatcher.
	 */
	public class ListenerTransport extends Transport
	{
		/** Whether to use the arguments array to add a listener or remove it. */
		public var removeListener:Boolean = false;
		
		
		/**
		 * Constructor
		 * 
		 * @param arguments  An array matching the parameter signature of add/removeEventListener
		 * [type, listener, useCapture, priority, useWeakReference]
		 * 
		 * @param removeListener  Whether to use the array to add a listener or remove it
		 */
		public function ListenerTransport(arguments:Array, removeListener:Boolean = false)
		{
			_arguments = arguments;
			this.removeListener = removeListener;
		}
	}
}